package net.lahuobao.mall.service.admin;

import net.lahuobao.mall.entity.admin.*;
import org.jeecgframework.core.common.model.json.DataGrid;
import org.jeecgframework.core.common.service.CommonService;

import java.util.List;
import java.util.Map;

public interface MallShopCardruleServiceI extends CommonService{

    void save(MallShopCardruleEntity mallShopCardrule);

    /**
     * 查看油卡回收
     * @param mallOilCardRecovery
     * @return
     */
    List<MallOilCardRecovery> selectOilCardRecovery(MallOilCardRecovery mallOilCardRecovery);


    /**
     * 批量更改状态
     * @param ids
     * @param state
     */
    void batchUpState(String ids, Integer state);


    /**
     * 查看油卡使用记录
     * @param mallOilCardRecovery
     * @return
     */
    List<MallOilCardRecovery> selectOilCardRecoveryByCardNo(MallOilCardRecovery mallOilCardRecovery);

    /**
     * 统计油卡使用情况
     * @return
     */
    MallOilCardRecoveryUse StatisticsOilCardRecoveryUse();

    List<MallShopCardruleQuery> selectMallShopCardRule(Map map, DataGrid dataGrid);

    List<MallShopCardruleQuery> getMallShopCardInfo(String cardNo);

    MallShopCardrule getMallShopCardRule(String cardNo);

    void saveMallShopCardRule(MallShopCardrule mallShopCardrule);

    MallShopCardrule selectById(Integer integer);
}
